package com.xiegang.serviceMap.controller;

import com.xiegang.internalcommon.dto.DicDistrict;
import com.xiegang.serviceMap.mapper.DicDistrictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author xieGang
 * @description
 * @date 2023/3/18 13:19
 **/

@RestController
public class TestController {

    @Autowired
    private DicDistrictMapper dicDistrictMapper;

    @GetMapping("/test-map")
    public String testMap(){

        Map<String,Object> map = new HashMap<>();
        map.put("address_code","110000");
        List<DicDistrict> dicDistricts = dicDistrictMapper.selectByMap(map);
        System.out.println(dicDistricts);

        return "testMap";
    }
}
